package com.service.pay.diamond.dao;

import com.service.pay.diamond.entity.RechargeSettingEntity;
import com.service.pay.diamond.interpreter.RechargeSettingInterpreter;
import com.service.pay.diamond.model.RechargeSettingModel;
import com.service.pay.diamond.repository.RechargeSettingRepository;
import com.tool.base.base.BaseDao;
import org.springframework.stereotype.Component;

@Component
public class RechargeSettingDao extends BaseDao<RechargeSettingEntity, RechargeSettingModel, RechargeSettingRepository, RechargeSettingInterpreter> {
    public RechargeSettingModel getById(int id) {
        return mapper.entityToModel(repository.getById(id));
    }
}
